package com.adou.multi.config;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import com.adou.multi.multi_tenancy.interceptor.TenantInterceptor;
/**
 * 拦截器
 * 
 * @author ADou
 *
 */
@Configuration
public class WebConfiguration implements WebMvcConfigurer{
	private final TenantInterceptor tenantInterceptor;
	
	@Autowired
	public WebConfiguration(TenantInterceptor tenantInterceptor){
		this.tenantInterceptor = tenantInterceptor;
	}
	 @Override
	public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
		// TODO Auto-generated method stub
		WebMvcConfigurer.super.addArgumentResolvers(resolvers);
	}
}
